
<td>星标客户</td>
<td> <div>
        {% if khxq.kehu_zhaungtai.guanzhu == 1 %}
           <span class="badge badge-danger p-2"> <i class="fa fa-star-o text-white" style="font-size: 10px;"></i></span>
        {% elif khxq.kehu_zhaungtai.guanzhu == 2 %}
          <span class="badge badge-danger p-2">  <i class="fa fa-star text-white" style="font-size: 10px;"></i></span>
        {% endif %}
        <i id="mySmallModalLabelkhgz" class=" fa fa-pencil btn-outline-primary p-2" data-toggle="modal" data-target="#mySmallModalLabelkhgzm"></i>
</div>
</td>
<td>数据来源</td>
<td>{{ khxq.tg_qudao.tg_leixing }}-{{ khxq.tg_qudao }}</td>
<td>客户有效</td>
<td>
 <span class="badge badge-danger p-2">{{ khxq.kehu_zhaungtai.get_youxiaoif_display }}</span>
    <i id="mySmallModalLabelyouxiaoif" class="fa fa-navicon btn-outline-primary p-2" data-toggle="modal" data-target="#mySmallModalLabelyouxiaoifm"></i>
</td>
<td>客户意向度</td>
<td>
   <span class="badge badge-danger p-2"> {{ khxq.kehu_zhaungtai.get_yixiangdu_display }}</span>
    <i id="mySmallModalLabelyxd" class=" fa fa-navicon btn-outline-primary p-2" data-toggle="modal" data-target="#mySmallModalLabelyxdm"></i>
</td>

<div id="mySmallModalLabelkhgzm" class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabelkhgzm" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
<form id="updateCustomerFormguanzhu">
    {% csrf_token %}
      <div class="modal-body">
          <div class="form-group">
            <label for="message-text" class="col-form-label">修改星标:</label>

    <select name="guanzhu" class="form-control" required="" id="guanzhu">
    {% for tg in khxq.kehu_zhaungtai.gz_choices %}
    <option  value="{{ tg.0 }}">{{ tg.1 }}</option>
    {% endfor %}
    </select>

          </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" id="updateCustomerConfirmButtona">修改</button>
      </div>
</form>
   </div>
  </div>
</div>
<div id="mySmallModalLabelyouxiaoifm" class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabelyouxiaoifm" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
<form id="updateCustomerFormyouxiao">
    {% csrf_token %}
      <div class="modal-body">
          <div class="form-group">
            <label for="message-text" class="col-form-label">客户有效:</label>

     <select name="youxiaoif" class="form-control" required="" id="youxiaoif">
    {% for tg in khxq.kehu_zhaungtai.yxx_choices %}
    <option  value="{{ tg.0 }}">{{ tg.1 }}</option>
    {% endfor %}
    </select>
          </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" id="updateCustomerConfirmButtonb">修改</button>
      </div>
</form>
   </div>
  </div>
</div>

<div id="mySmallModalLabelyxdm" class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabelyxdm" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">

<form id="updateCustomerFormyixiangdu">
    {% csrf_token %}
      <div class="modal-body">
          <div class="form-group">
            <label for="message-text" class="col-form-label">客户意向度:</label>
             <form method="post">
    <select name="yixiangdu" class="form-control" required="" id="yixiangdu">
    {% for tg in khxq.kehu_zhaungtai.yxd_choices %}
    <option  value="{{ tg.0 }}">{{ tg.1 }}</option>
    {% endfor %}
    </select>
       </form>
          </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" id="updateCustomerConfirmButtonc">修改</button>
      </div>
</form>
   </div>
  </div>
</div>



